﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OpenSda.Agilcont.Common.Business.Exceptions
{
    public sealed class EmpresaNotFoundException : Exception
    {
        public EmpresaNotFoundException()
            : base(string.Format("The Empresa doesn't exist in the DataBase"))
        { }
    }

    public sealed class EmpresaCannotBeNullException : Exception
    {
        public EmpresaCannotBeNullException()
            : base(string.Format("Empresa cannot be null"))
        { }
    }

    public sealed class EmpresaCodeInUseException : Exception
    {
        public EmpresaCodeInUseException()
            : base(string.Format("The Empresa Code is already in use"))
        { }
    }

    public sealed class EmpresaNameInUseException : Exception
    {
        public EmpresaNameInUseException()
            : base(string.Format("The Empresa Name is already in use"))
        { }
    }
}




